# Makefile.in generated automatically by automake 1.3b from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

#  cmod - set up the user environment with module files.
#  Copyright (C) 1997, 1998 by the authors of cmod (see AUTHORS).
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */


SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

DESTDIR =

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = .

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CC = @CC@
CPP = @CPP@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
PYTHON = @PYTHON@
U = @U@
VERSION = @VERSION@
pwd_path = @pwd_path@

SUBDIRS = testsuite
AUTOMAKE_OPTIONS = ansi2knr gnu
RM = rm -f

info_TEXINFOS = cmod.texi

# How to build the cmod binary.
libexec_PROGRAMS = cmod
cmod_SOURCES = cmod.c cmod_alloc.c cmod_parse.c cmod_trace.c env.c \
	cmod_alloc.h cmod_main.h cmod_parse.h cmod_trace.h env.h unused.h \
	cmod_dirent.h archaic.h cmod_string.c cmod_string.h \
	cmod_token.h cmod_token.c cmod_preproc.h cmod_pp.c \
	cmod_process.h cmod_proc.c cmod_wait.h cmod_strp.h \
	cmod_strn.h
cmod_LDADD = @LIBOBJS@
CMOD=$(libexecdir)/cmod

BUILT_SOURCES = cmod_strn.h

EXTRA_DIST = .cvsignore create_sample README.DEVO RELEASING MACHINES \
	bash.in tcsh.in zsh.in ksh.in \
	sh.in path.sh.in \
	csh.in path.csh.in

pkgsysconfdir=$(sysconfdir)/@PACKAGE@

# We don't install any module files, except with the special
# install-sample target.
moduledir=$(pkgsysconfdir)/modulefiles
module_DATA = 

# Init files, to be sourced from the shell startup files.
pkgsysconf_SCRIPTS = path.sh path.csh \
	sh.init csh.init bash.init tcsh.init zsh.init ksh.init
SUFFIXES = .in .init

# Clean target support.
MOSTLYCLEANFILES = *.init *.tmp path.sh path.csh enforce-recheck

# Remove all files that automake installs.  Note: keep this list
# in sync with the list of files to remove mentioned in the file
# RELEASING so that these are regenereated during a release build!
MAINTAINERCLEANFILES = COPYING INSTALL Makefile.in aclocal.m4 \
	ansi2knr.1 ansi2knr.c config.h.in configure install-sh \
	mdate-sh missing mkinstalldirs texinfo.tex

noinst_DATA = enforce-recheck
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES = 
PROGRAMS =  $(libexec_PROGRAMS)


DEFS = @DEFS@ -I. -I$(srcdir) -I.
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
ANSI2KNR = @ANSI2KNR@
cmod_OBJECTS =  cmod$U.o cmod_alloc$U.o cmod_parse$U.o cmod_trace$U.o \
env$U.o cmod_string$U.o cmod_token$U.o cmod_pp$U.o cmod_proc$U.o
cmod_DEPENDENCIES =  @LIBOBJS@
cmod_LDFLAGS = 
SCRIPTS =  $(pkgsysconf_SCRIPTS)

CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LINK = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
TEXI2DVI = texi2dvi
INFO_DEPS = cmod.info
DVIS = cmod.dvi
TEXINFOS = cmod.texi
DATA =  $(module_DATA) $(noinst_DATA)

DIST_COMMON =  README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
Makefile.in NEWS THANKS TODO acconfig.h acinclude.m4 aclocal.m4 \
ansi2knr.1 ansi2knr.c config.h.in configure configure.in getcwd.c \
install-sh mdate-sh memmove.c missing mkinstalldirs stamp-h.in \
stamp-vti strdup.c texinfo.tex version.texi


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP = --best
SOURCES = $(cmod_SOURCES)
OBJECTS = $(cmod_OBJECTS)

all: all-recursive-am all-am

.SUFFIXES:
.SUFFIXES: .S .c .dvi .in .info .init .o .ps .s .texi .texinfo .txi
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status

$(ACLOCAL_M4):  configure.in  acinclude.m4
	cd $(srcdir) && $(ACLOCAL)

config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
	cd $(srcdir) && $(AUTOCONF)

config.h: stamp-h
	@:
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
	cd $(top_builddir) \
	  && CONFIG_FILES= CONFIG_HEADERS=config.h \
	     $(SHELL) ./config.status
	@echo timestamp > stamp-h
$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
	cd $(top_srcdir) && $(AUTOHEADER)
	@echo timestamp > $(srcdir)/stamp-h.in

mostlyclean-hdr:

clean-hdr:

distclean-hdr:
	-rm -f config.h

maintainer-clean-hdr:

mostlyclean-libexecPROGRAMS:

clean-libexecPROGRAMS:
	-test -z "$(libexec_PROGRAMS)" || rm -f $(libexec_PROGRAMS)

distclean-libexecPROGRAMS:

maintainer-clean-libexecPROGRAMS:

install-libexecPROGRAMS: $(libexec_PROGRAMS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libexecdir)
	@list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
	     $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	  else :; fi; \
	done

uninstall-libexecPROGRAMS:
	@$(NORMAL_UNINSTALL)
	list='$(libexec_PROGRAMS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(libexecdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	done

.c.o:
	$(COMPILE) -c $<

.s.o:
	$(COMPILE) -c $<

.S.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

distclean-compile:
	-rm -f *.tab.c

maintainer-clean-compile:

mostlyclean-krextra:

clean-krextra:
	-rm -f ansi2knr

distclean-krextra:

maintainer-clean-krextra:
ansi2knr: ansi2knr.o
	$(LINK) ansi2knr.o $(LIBS)
ansi2knr.o: $(CONFIG_HEADER)


mostlyclean-kr:
	-rm -f *_.c

clean-kr:

distclean-kr:

maintainer-clean-kr:

cmod: $(cmod_OBJECTS) $(cmod_DEPENDENCIES)
	@rm -f cmod
	$(LINK) $(cmod_LDFLAGS) $(cmod_OBJECTS) $(cmod_LDADD) $(LIBS)

install-pkgsysconfSCRIPTS: $(pkgsysconf_SCRIPTS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(pkgsysconfdir)
	@list='$(pkgsysconf_SCRIPTS)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(pkgsysconfdir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $$p $(DESTDIR)$(pkgsysconfdir)/`echo $$p|sed '$(transform)'`; \
	  else if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(pkgsysconfdir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(pkgsysconfdir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; fi; \
	done

uninstall-pkgsysconfSCRIPTS:
	@$(NORMAL_UNINSTALL)
	list='$(pkgsysconf_SCRIPTS)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(pkgsysconfdir)/`echo $$p|sed '$(transform)'`; \
	done
cmod_.c: cmod.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod.c; then echo $(srcdir)/cmod.c; else echo cmod.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_.c
cmod_alloc_.c: cmod_alloc.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_alloc.c; then echo $(srcdir)/cmod_alloc.c; else echo cmod_alloc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_alloc_.c
cmod_parse_.c: cmod_parse.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_parse.c; then echo $(srcdir)/cmod_parse.c; else echo cmod_parse.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_parse_.c
cmod_pp_.c: cmod_pp.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_pp.c; then echo $(srcdir)/cmod_pp.c; else echo cmod_pp.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_pp_.c
cmod_proc_.c: cmod_proc.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_proc.c; then echo $(srcdir)/cmod_proc.c; else echo cmod_proc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_proc_.c
cmod_string_.c: cmod_string.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_string.c; then echo $(srcdir)/cmod_string.c; else echo cmod_string.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_string_.c
cmod_token_.c: cmod_token.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_token.c; then echo $(srcdir)/cmod_token.c; else echo cmod_token.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_token_.c
cmod_trace_.c: cmod_trace.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/cmod_trace.c; then echo $(srcdir)/cmod_trace.c; else echo cmod_trace.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > cmod_trace_.c
env_.c: env.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/env.c; then echo $(srcdir)/env.c; else echo env.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > env_.c
getcwd_.c: getcwd.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/getcwd.c; then echo $(srcdir)/getcwd.c; else echo getcwd.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > getcwd_.c
memmove_.c: memmove.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/memmove.c; then echo $(srcdir)/memmove.c; else echo memmove.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > memmove_.c
strdup_.c: strdup.c $(ANSI2KNR)
	$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/strdup.c; then echo $(srcdir)/strdup.c; else echo strdup.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > strdup_.c
cmod_.o cmod_alloc_.o cmod_parse_.o cmod_pp_.o cmod_proc_.o \
cmod_string_.o cmod_token_.o cmod_trace_.o env_.o getcwd_.o memmove_.o \
strdup_.o : $(ANSI2KNR)

version.texi: stamp-vti
	cp $(srcdir)/stamp-vti $(srcdir)/version.texi

stamp-vti: cmod.texi $(top_srcdir)/configure.in
	@echo "@set UPDATED `cd $(srcdir) \
	  && $(SHELL) ./mdate-sh cmod.texi`" > vti.tmp
	@echo "@set EDITION $(VERSION)" >> vti.tmp
	@echo "@set VERSION $(VERSION)" >> vti.tmp
	@cmp -s vti.tmp $(srcdir)/stamp-vti \
	  || (echo "Updating $(srcdir)/stamp-vti"; \
	      cp vti.tmp $(srcdir)/stamp-vti)
	-@rm -f vti.tmp

mostlyclean-vti:
	-rm -f vti.tmp

clean-vti:

distclean-vti:

maintainer-clean-vti:
	-rm -f stamp-vti version.texi

cmod.info: cmod.texi version.texi
cmod.dvi: cmod.texi version.texi


DVIPS = dvips

.texi.info:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texi.dvi:
	TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.texi:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texinfo.info:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texinfo:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.texinfo.dvi:
	TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.txi.info:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`

.txi.dvi:
	TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<

.txi:
	@cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
	cd $(srcdir) \
	  && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
.dvi.ps:
	$(DVIPS) $< -o $@

install-info-am: $(INFO_DEPS)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(infodir)
	@for file in $(INFO_DEPS); do \
	  d=$(srcdir); \
	  for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
	    if test -f $$d/$$ifile; then \
	      echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
	      $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
	    else : ; fi; \
	  done; \
	done
	@$(POST_INSTALL)
	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
	  for file in $(INFO_DEPS); do \
	    echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
	    install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
	  done; \
	else : ; fi

uninstall-info:
	$(PRE_UNINSTALL)
	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
	  ii=yes; \
	else ii=; fi; \
	for file in $(INFO_DEPS); do \
	  test -z "$ii" \
	    || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
	done
	@$(NORMAL_UNINSTALL)
	for file in $(INFO_DEPS); do \
	  (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
	done

dist-info: $(INFO_DEPS)
	for base in $(INFO_DEPS); do \
	  d=$(srcdir); \
	  for file in `cd $$d && eval echo $$base*`; do \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file; \
	  done; \
	done

mostlyclean-aminfo:
	-rm -f cmod.aux cmod.cp cmod.cps cmod.dvi cmod.fn cmod.fns cmod.ky \
	  cmod.kys cmod.ps cmod.log cmod.pg cmod.toc cmod.tp cmod.tps \
	  cmod.vr cmod.vrs cmod.op cmod.tr cmod.cv cmod.cn

clean-aminfo:

distclean-aminfo:

maintainer-clean-aminfo:
	for i in $(INFO_DEPS); do \
	  rm -f $$i; \
	  if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
	    rm -f $$i-[0-9]*; \
	  fi; \
	done

install-moduleDATA: $(module_DATA)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(moduledir)
	@list='$(module_DATA)'; for p in $$list; do \
	  if test -f $(srcdir)/$$p; then \
	    echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(moduledir)/$$p"; \
	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(moduledir)/$$p; \
	  else if test -f $$p; then \
	    echo " $(INSTALL_DATA) $$p $(DESTDIR)$(moduledir)/$$p"; \
	    $(INSTALL_DATA) $$p $(DESTDIR)$(moduledir)/$$p; \
	  fi; fi; \
	done

uninstall-moduleDATA:
	@$(NORMAL_UNINSTALL)
	list='$(module_DATA)'; for p in $$list; do \
	  rm -f $(DESTDIR)$(moduledir)/$$p; \
	done

# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.

@SET_MAKE@

all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive  \
check-recursive installcheck-recursive info-recursive dvi-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  target=`echo $@ | sed s/-recursive//`; \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"

mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@set fnord $(MAKEFLAGS); amf=$$2; \
	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
	  rev="$$subdir $$rev"; \
	done; \
	for subdir in $$rev; do \
	  target=`echo $@ | sed s/-recursive//`; \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"
tags-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES) $(LISP)
	here=`pwd` && cd $(srcdir) \
	  && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)

TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
	done; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)

# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
	-rm -rf $(distdir)
	GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz
	mkdir $(distdir)/=build
	mkdir $(distdir)/=inst
	dc_install_base=`cd $(distdir)/=inst && pwd`; \
	cd $(distdir)/=build \
	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
	  && $(MAKE) $(AM_MAKEFLAGS) \
	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
	  && $(MAKE) $(AM_MAKEFLAGS) check \
	  && $(MAKE) $(AM_MAKEFLAGS) install \
	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
	  && $(MAKE) $(AM_MAKEFLAGS) dist
	-rm -rf $(distdir)
	@echo "========================"; \
	echo "$(distdir).tar.gz is ready for distribution"; \
	echo "========================"
dist: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
dist-all: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir)
	-rm -rf $(distdir)
distdir: $(DISTFILES)
	-rm -rf $(distdir)
	mkdir $(distdir)
	-chmod 777 $(distdir)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
	for subdir in $(SUBDIRS); do \
	  test -d $(distdir)/$$subdir \
	  || mkdir $(distdir)/$$subdir \
	  || exit 1; \
	  chmod 777 $(distdir)/$$subdir; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
	    || exit 1; \
	done
	$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
ansi2knr.o: ansi2knr.c config.h
cmod.o: cmod.c config.h cmod_string.h cmod_strp.h env.h cmod_dirent.h \
	cmod_main.h cmod_trace.h cmod_parse.h cmod_alloc.h unused.h \
	archaic.h
cmod_.o: cmod_.c
cmod_alloc.o: cmod_alloc.c config.h cmod_alloc.h cmod_main.h
cmod_alloc_.o: cmod_alloc_.c
cmod_parse.o: cmod_parse.c config.h cmod_string.h cmod_strp.h \
	cmod_parse.h cmod_main.h cmod_alloc.h env.h archaic.h \
	cmod_token.h
cmod_parse_.o: cmod_parse_.c
cmod_pp.o: cmod_pp.c config.h cmod_string.h cmod_strp.h cmod_token.h \
	cmod_preproc.h archaic.h cmod_main.h env.h cmod_process.h \
	cmod_wait.h
cmod_preproc.o: cmod_preproc.c config.h cmod_string.h cmod_strp.h \
	cmod_token.h cmod_preproc.h archaic.h cmod_main.h env.h \
	cmod_process.h cmod_wait.h
cmod_preproc_.o: cmod_preproc_.c
cmod_proc.o: cmod_proc.c config.h cmod_string.h cmod_strp.h \
	cmod_process.h cmod_main.h cmod_alloc.h env.h archaic.h
cmod_process.o: cmod_process.c config.h cmod_string.h cmod_strp.h \
	cmod_process.h cmod_main.h cmod_alloc.h env.h archaic.h
cmod_process_.o: cmod_process_.c
cmod_string.o: cmod_string.c config.h archaic.h cmod_alloc.h \
	cmod_string.h cmod_strp.h
cmod_string_.o: cmod_string_.c
cmod_token.o: cmod_token.c config.h cmod_alloc.h cmod_string.h \
	cmod_strp.h cmod_token.h cmod_preproc.h archaic.h unused.h
cmod_token_.o: cmod_token_.c
cmod_trace.o: cmod_trace.c config.h cmod_trace.h
cmod_trace_.o: cmod_trace_.c
env.o: env.c config.h cmod_string.h cmod_strp.h env.h cmod_main.h \
	cmod_trace.h cmod_alloc.h archaic.h
env_.o: env_.c
getcwd.o: getcwd.c config.h cmod_string.h cmod_strp.h cmod_process.h \
	archaic.h

info: $(INFO_DEPS) info-recursive
dvi: $(DVIS) dvi-recursive
check: all-am
	$(MAKE) $(AM_MAKEFLAGS) check-recursive
installcheck: installcheck-recursive
all-recursive-am: config.h
	$(MAKE) $(AM_MAKEFLAGS) all-recursive

all-am: Makefile $(INFO_DEPS) $(ANSI2KNR) $(PROGRAMS) $(SCRIPTS) $(DATA) config.h

install-exec-am: install-libexecPROGRAMS

install-data-am: install-info-am install-pkgsysconfSCRIPTS install-moduleDATA

uninstall-am: uninstall-libexecPROGRAMS uninstall-pkgsysconfSCRIPTS uninstall-info uninstall-moduleDATA

install-exec: install-exec-recursive install-exec-am
	@$(NORMAL_INSTALL)

install-data: install-data-recursive install-data-am
	@$(NORMAL_INSTALL)

install: install-recursive install-exec-am install-data-am
	@:

uninstall: uninstall-recursive uninstall-am

install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs: installdirs-recursive
	$(mkinstalldirs)  $(DESTDIR)$(libexecdir) $(DESTDIR)$(pkgsysconfdir) \
		$(DESTDIR)$(infodir) $(DESTDIR)$(moduledir)


mostlyclean-generic:
	-test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:

distclean-generic:
	-rm -f Makefile $(CONFIG_CLEAN_FILES)
	-rm -f config.cache config.log stamp-h stamp-h[0-9]*

maintainer-clean-generic:
	-test -z "$(BUILT_SOURCES)$(MAINTAINERCLEANFILES)" || rm -f $(BUILT_SOURCES) $(MAINTAINERCLEANFILES)
mostlyclean-am:  mostlyclean-hdr mostlyclean-libexecPROGRAMS \
		mostlyclean-compile mostlyclean-krextra mostlyclean-kr \
		mostlyclean-vti mostlyclean-aminfo mostlyclean-tags \
		mostlyclean-generic

clean-am:  clean-hdr clean-libexecPROGRAMS clean-compile clean-krextra \
		clean-kr clean-vti clean-aminfo clean-tags \
		clean-generic mostlyclean-am

distclean-am:  distclean-hdr distclean-libexecPROGRAMS distclean-compile \
		distclean-krextra distclean-kr distclean-vti \
		distclean-aminfo distclean-tags distclean-generic \
		clean-am

maintainer-clean-am:  maintainer-clean-hdr \
		maintainer-clean-libexecPROGRAMS \
		maintainer-clean-compile maintainer-clean-krextra \
		maintainer-clean-kr maintainer-clean-vti \
		maintainer-clean-aminfo maintainer-clean-tags \
		maintainer-clean-generic distclean-am

mostlyclean:  mostlyclean-recursive mostlyclean-am

clean:  clean-recursive clean-am

distclean:  distclean-recursive distclean-am
	-rm -f config.status

maintainer-clean:  maintainer-clean-recursive maintainer-clean-am
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."
	-rm -f config.status

.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
mostlyclean-libexecPROGRAMS distclean-libexecPROGRAMS \
clean-libexecPROGRAMS maintainer-clean-libexecPROGRAMS \
uninstall-libexecPROGRAMS install-libexecPROGRAMS mostlyclean-compile \
distclean-compile clean-compile maintainer-clean-compile \
mostlyclean-krextra distclean-krextra clean-krextra \
maintainer-clean-krextra mostlyclean-kr distclean-kr clean-kr \
maintainer-clean-kr uninstall-pkgsysconfSCRIPTS \
install-pkgsysconfSCRIPTS mostlyclean-vti distclean-vti clean-vti \
maintainer-clean-vti install-info-am uninstall-info mostlyclean-aminfo \
distclean-aminfo clean-aminfo maintainer-clean-aminfo \
uninstall-moduleDATA install-moduleDATA install-data-recursive \
uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
installcheck all-recursive-am all-am install-exec-am install-data-am \
uninstall-am install-exec install-data install uninstall all \
installdirs mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean

install-sample:
	$(srcdir)/create_sample $(moduledir)
.in.init:
	$(RM) $@ $@.tmp
	sed -e 's%@CMOD@%$(CMOD)%g' \
	    -e 's%@MODULEPATH@%$(moduledir)%g' \
	    -e 's%@INIT@%$(pkgsysconfdir)%g' \
	    < $< > $@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@

path.sh: path.sh.in
	$(RM) $@ $@.tmp
	sed -e 's%@INIT@%$(pkgsysconfdir)%g'< $(srcdir)/path.sh.in > $@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@

path.csh: path.csh.in
	$(RM) $@ $@.tmp
	sed -e 's%@INIT@%$(pkgsysconfdir)%g'< $(srcdir)/path.csh.in > $@.tmp
	chmod +x $@.tmp
	mv $@.tmp $@
enforce-recheck: cmod
	$(RM) testsuite/*.outss testsuite/*.outsg testsuite/*.outgs \
	    testsuite/*.outgg
	echo timestamp > enforce-recheck

cmod_strn.h: cmod_strp.h
	$(RM) $@ $@.tmp
	echo '/* Generated by Makefile from cmod_strp.h.  Do not edit. */' \
		> $@.tmp
	sed 's/\(extern.*\)(.*)/\1()/' < $(srcdir)/cmod_strp.h >> $@.tmp
	echo '/* Generated by Makefile from cmod_strp.h.  Do not edit. */' \
		>> $@.tmp
	mv $@.tmp $@

# The dependencies that are automatically generated when the
# distribution is made does not include cmod_strn.h (since the
# distribution is made with gcc that understands prototypes).
# This dependency is here so that the dependencies are correct on
# computers without prototypes.
cmod_string.h: cmod_strn.h

# Recheck everything.
recheck:
	$(RM) testsuite/*.outss testsuite/*.outsg testsuite/*.outgs \
	    testsuite/*.outgg
	$(MAKE) check

# Check that no non-portable file names are included in the
# distribution.  This test was borrowed from the makefile of 
# automake 1.3b.
path-check: distdir
	(cd $(distdir) && \
	  find . -print | xargs pathchk -p); \
	  status=$$?; \
	  rm -rf $(distdir); \
	  exit $$status

index-check:
	egrep '^@..?index ' $(srcdir)/cmod.texi \
	| sort | uniq -c | sort -nr

# This target is used by the automatic distributed test driver to
# gather information about the used setup.  It is probably not useful
# for anyone except the cmod maintainers.
identify:
	@echo Uname: `uname -a`
	@echo CC: $(CC)
	@echo CFLAGS: $(CFLAGS)
	@echo Compiler version: `$(CC) -v 2>&1`

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
